package com.example.softwareengg;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class ScreenB extends Activity implements OnClickListener {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.screenb);
		Button request = (Button) findViewById(R.id.request);
		Button respond = (Button) findViewById(R.id.respond);
		Button log = (Button) findViewById(R.id.log);
		Button not = (Button) findViewById(R.id.not);
		TextView logout = (TextView) findViewById(R.id.logout);
		request.setOnClickListener(this);
		respond.setOnClickListener(this);
		log.setOnClickListener(this);
		not.setOnClickListener(this);
		logout.setOnClickListener(this);
	}
	 public void onClick(View v) {
	        switch (v.getId()) {
	        case R.id.request:
	        	 Intent intent = new Intent(/*FirstActivity.this*/ v.getContext(), Screenin.class);
				    startActivity(intent);

	            break;
	        case R.id.respond:
	        	 Intent intent1 = new Intent(/*FirstActivity.this*/ v.getContext(), Screenout.class);
				    startActivity(intent1);

	            break;
	            
	        case R.id.log:
	        	 Intent intent2 = new Intent(/*FirstActivity.this*/ v.getContext(), Screenlog.class);
				    startActivity(intent2);

	            break;
	            
	        case R.id.not:
	        	 Intent intent3 = new Intent(/*FirstActivity.this*/ v.getContext(), Screennot.class);
				    startActivity(intent3);

	            break;
	            
	        case R.id.logout:
	        	 Intent intent4 = new Intent(/*FirstActivity.this*/ v.getContext(), ScreenA.class);
				    startActivity(intent4);
	        	        default:
	            break;
	        }


	

	 }

	

}
